﻿<%@ Page Title="药品库存汇总" Language="C#" MasterPageFile="~/Master/MasterPage_New.Master" AutoEventWireup="true" CodeBehind="Stocks_Sum.aspx.cs" Inherits="HZ.Supervise.Web.Secondphase.Stocks.Stocks_Sum" %>
<%@ Register Src="~/Common/WebUserArea.ascx" TagName="WebUserArea" TagPrefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <style type="text/css">
        .style1
        {
            height: 24px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <div id="tabcontent">
        <table class="querylist">
            <tr>
                <td>
                    <table class="querylist">
                        <tr>
                        <td align="right" __designer:mapid="41">
                            <asp:Label ID="labProductName" runat="server" Text="通用名："></asp:Label>
                        </td>
                        <td align="left" __designer:mapid="43">
                            <asp:TextBox ID="txtProductName" runat="server"></asp:TextBox>
                        </td>
                        <td align="right" __designer:mapid="45">
                            <asp:Label ID="labMedicineModel" runat="server" Text="剂型："></asp:Label>
                        </td>
                        <td align="left" __designer:mapid="47">
                            <asp:TextBox ID="txtMedicineModel" runat="server"></asp:TextBox>
                        </td>
                        <td align="right" __designer:mapid="49">
                            <asp:Label ID="labOutlookc" Text="规格：" runat="server"></asp:Label>
                        </td>
                        <td align="left" __designer:mapid="4b">
                            <asp:TextBox ID="txtOutlookc" runat="server"></asp:TextBox>
                        </td>
                        <%--<td align="right" __designer:mapid="63">
                            <asp:Label ID="labSort" runat="server" Text="排序方式："></asp:Label>
                        </td>
                        <td align="left" __designer:mapid="65">
                            <asp:DropDownList ID="ddlFiled" runat="server">
                            </asp:DropDownList>
                            <asp:DropDownList ID="ddlDirection" runat="server">
                                <asp:ListItem Selected="True" Value="ASC">升序</asp:ListItem>
                                <asp:ListItem Value="DESC">降序</asp:ListItem>
                            </asp:DropDownList>
                        </td>--%>
                        </tr>
                        <tr>
                        <td align="right" __designer:mapid="4e" class="style1">
                            <asp:Label ID="lblPinYinCode" runat="server" Text="流水号："></asp:Label>
                        </td>
                        <td align="left" __designer:mapid="50" class="style1">
                            <asp:TextBox ID="txtPinYinCode" runat="server"></asp:TextBox>
                        </td>
                        <td align="right" __designer:mapid="52" class="style1">
                            <asp:Label ID="labPack" runat="server" Text="包装："></asp:Label>
                        </td>
                        <td align="left" __designer:mapid="54" class="style1">
                            <asp:TextBox ID="txtPack" runat="server"></asp:TextBox>
                        </td>
                        <td align="right" __designer:mapid="56" class="style1">
                            <asp:Label ID="labUnit" runat="server" Text="单位："></asp:Label>
                        </td>
                        <td align="left" __designer:mapid="58" class="style1">
                            <asp:TextBox ID="txtUnit" runat="server"></asp:TextBox>
                        </td>
                        </tr>
                      
                    </table>
                </td>
                <td width="100px">
                    <asp:Button ID="btnQuery" runat="server" Text="查询" CssClass="searchbtn"
                        SkinID="search" ToolTip="点击查询符合条件的数据" onclick="btnQuery_Click" />
                </td>
            </tr>
        </table>
        </div>
        <asp:GridView ID="gvwInfo" runat="server" CssClass="mainlist" Width="100%" AutoGenerateColumns="False" DataKeyNames="GoodsID,ProductName">
            <Columns>
                <asp:TemplateField HeaderText="序号">
                    <ItemTemplate>
                        <%# Container.DataItemIndex+1+(AspNetPager1.CurrentPageIndex-1)*AspNetPager1.PageSize %>
                    </ItemTemplate>
                    <HeaderStyle Width="30px" />
                </asp:TemplateField>
                <asp:BoundField DataField="GoodsID" HeaderText="流水号" />
                <asp:BoundField HeaderText="通用名" DataField="ProductName" />
                <%--<asp:BoundField HeaderText="剂型" DataField="MedicineModelName" />--%>
                <asp:BoundField HeaderText="规格" DataField="Outlookc" />
                <asp:BoundField HeaderText="包装" DataField="Factor" />
                <asp:BoundField HeaderText="单位" DataField="Unit" />
                <asp:BoundField HeaderText="生产企业" DataField="CompanyName_SC" />                
<%--                <asp:TemplateField HeaderText="采购类型">
                    <ItemTemplate>
                         <%# HZ.Supervise.Web.Function.FormatDrugSource(Eval("Source"))%>
                    </ItemTemplate>
                </asp:TemplateField>--%>
                 <asp:TemplateField HeaderText="所有医院库存">
                    <ItemTemplate>
                       <a href="Stocks_Group_Hos.aspx?goodsid=<%# Eval("GoodsID")%>"><%# Eval("HospitalTotalStock")%></a>  
                    </ItemTemplate>
                </asp:TemplateField>
                 <asp:TemplateField HeaderText="所有企业库存">
                    <ItemTemplate>
                        <a href="Stocks_Group_Com.aspx?goodsid=<%# Eval("GoodsID")%>"><%# Eval("CompanyTotalStock")%></a>  
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
  <div class="page">
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_PageChanged">
        </webdiyer:AspNetPager>
    </div>
      <div class="listip">
        <ul>
            <li>说明:<span>可以点击相应的总库存进入查看详细库存信息</span></li>
        </ul>
    </div>
    </div>
    
</asp:Content>
